package kms

type GetSecretValueReq struct {
	SecretName string `json:"secretName"`
}

func (req *GetSecretValueReq) action() string {
	return "GetSecretValue"
}

type GetSecretValueRes struct {
	ResCommon
	Result struct {
		SecretName string `json:"secretName"`
		SecretData string `json:"secretData"`
		VersionId  int    `json:"versionId"`
		CreateTime int64  `json:"createTime"`
	} `json:"result"`
}

func (c *Client) GetSecretValue(req *GetSecretValueReq) (res GetSecretValueRes, err error) {
	err = c.Request(req, &res)
	return
}
